<template>
    <div class="tool-bar">
        <img :src="itemData?.logoUrl" alt="" class="avatar">
        <div class="collection">
            <img class="heart-img" src="@/assets/img/search/tj-mob-ui_unit-item_collected-new.png" alt="">
            <span v-if="itemData.favoriteCount">{{ itemData.favoriteCount }}</span>
        </div>
        <div class="message">
            <img class="msg-img" src="@/assets/img/search/tj-mob-ui_unit-item_comment-new.png" alt="">
            <span>{{ itemData.totalCount }}</span>
        </div>
    </div>
</template>


<script setup>
// 传递拿到数据
const props = defineProps({
    itemData: {
        type: Object,
        default: () => { }
    }
})

</script>


<style lang="less" scoped>
.tool-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-top: 5px;
    }

    .message,
    .collection {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;

        .heart-img,
        .msg-img {
            width: 30px;
            height: 30px;
        }

        span {
            color: #fff;
        }
    }
}
</style>